import {Component, OnInit} from '@angular/core';
import {LogService} from "../log.service";

@Component({
  selector: 'app-myc03-product',
  templateUrl: './myc03-product.component.html',
  styleUrls: ['./myc03-product.component.css']
})
export class Myc03ProductComponent implements OnInit {

  constructor(private log: LogService) {
    this.log = log;
  }

  ngOnInit(): void {
  }

  doAdd() {
    let action = "添加了商品 xxxx"
    this.log.doLog(action)
  }

  doDelete() {
    let action = "删除了商品 xxxx"
    this.log.doLog(action)
  }
}
